package com.hackcloud.shardingjdbc.domain.center;

import lombok.Data;

import javax.persistence.*;

@Table
@Entity(name = "risk_apply_center_contact_list")
@Data
public class ApplyCenterContact extends AbstractEntity {
    /**
     * 风控内部流水号
     */
    private String serviceFlowNo;
    private String name;
    private String mobile;
    private String certNo;
    private Integer relation;
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "serviceFlowNo", insertable = false, updatable = false, referencedColumnName = "serviceFlowNo")
    private ApplyCenterMain main;
}
